package com.chenfei.captcha.common;

public enum MarketRespEnum {
	//请求结果响应码
	SUCCESS("0000", "成功"),
	PROCESSING("0001", "请求处理中"),

	//会员类响应
	WRONG_CUSTOMERID("1000", "错误的customerId"),
	NOT_REAL("1001", "用户未实名"),
	NOT_BIND_CARD("1002", "用户未绑卡"),
	NOT_RISK_RATE("1003", "用户未做风险评测"),
	WRONG_CUSTOMER("1004", "会员服务响应为空"),
	EMPTY_CUSTOMERID("1005", "customerId为空"),
	CUSTOMERID_NOT_EXIST("1006", "会员信息不存在"),
	NOT_A_NOVICE("1007", "已不是新手"),
	CUSTOMER_REQ_PROCESSING("1008", "用户请求处理中"),

	//产品类响应
	WRONG_PRODUCT("2000", "产品服务响应为空"),
	LESS_THAN_MINAMOUNT("2001", "投资额不能低于产品最低投资额"),
	GREAT_THAN_SINGLEMAXAMOUNT("2002", "投资额不能超过最高限额"),
	GREAT_THAN_STOCKMOUNT("2003", "购买金额不能超出产品剩余金额"),
	NOT_MATCH_STEPAMOUNT("2004", "投资金额必须按照规定递增"),
	NOT_MATCH_LASTAMOUNT("2005", "投资将使产品剩余额度不足，金额需调整为%s元"),
	PRODUCT_NOT_ONSALE("2006", "产品不在销售状态"),

	//订单类响应
	ORDER_EXPIRED("3000", "订单已过期"),
	INVALID_ORDER_PAYSTATUS("3001", "订单支付状态不合法"),
	NO_SUCH_ORDER("3002", "订单不存在"),
	WRONG_ORDER("3003", "订单信息有误"),
	ORDER_CANCELED("3004", "订单已取消"),
	ORDER_REGISTER_FAIL("3005", "订单登记失败"),


	//通用业务响应码
	BUSINESS_ERROR("5000", "业务异常"),
	PARAM_ERROR("5001", "参数错误"),
	NULL_DATA("5002","响应体为空"),
	REPEAT_DATA("5003","数据重复"),
	
	NO_SUCH_COUPON("7001", "券信息不存在"),
	PAGENO_MUST_BE_FROM_ONE("7002", "pageNo必须从1开始"),
	NO_SUCH_PRODUCT("7003", "产品信息不存在"),
	COUPON_NOT_MATCHED_WITH_PRODUCT_LINE("7005", "此券不适用于该产品线"),
	COUPON_NOT_MATCHED_WITH_PRODUCT("7006", "此券不适用于该产品"),
	COUPON_ALREADY_EXPIRED("7007", "此券已过期"),
	COUPON_CAN_NOT_BE_USED("7008", "此券尚不可用"),
	COUPON_ALREADAY_USED("7009", "此券已使用"),
	COUPON_NOT_MATCHED_WITH_INVEST_AMOUNT("7010", "此券不满足投资金额条件"),
	COUPON_SPECIAL_STATEMENT("7011", "网络好像出了一点小问题，请重试一下"),
	DATE_FORMAT_SHOULD_BE_YY_MM_DD("7012", "日期格式应为年月日"),

	//券状态
	COUPON_FREEZE_FAILT("7101", "冻结失败"),
	COUPON_UNFREEZE_FAILT("7102", "解冻失败"),
	COUPON_VERIFICATION_FAILT("7103", "核销失败"),
	COUPON_MISSPRODUCT_FAILT("7104", "回滚失败"),
	
	//系统响应码
	SYSTEM_ERROR("9999", "系统异常");
	
	MarketRespEnum(String code, String message) {
		this.code = code;
		this.message = message;
	}

	private String code;
	private String message;

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
}
